package com.ruoyi.member.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * #仓库信息表
 * @TableName bm_warehouse
 */
@Data
public class BmWarehouse implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 仓库编号
     */
    private String warehouseCode;

    /**
     * 机构id
     */
    private Integer mechanismId;

    /**
     * 仓库类型 1.自有 2.租赁
     */
    private Integer warehouseType;

    /**
     * 仓库地址
     */
    private String address;

    /**
     * 物流费每公里
     */
    private BigDecimal deliveryfeeAverykm;

    /**
     * 开始营业时间
     */
    private String startTime;

    /**
     * 结束营业时间
     */
    private String endTime;

    /**
     * 配送范围
     */
    private BigDecimal deliveryRadius;

    /**
     * 仓库经纬度坐标 如：113.781181,34.720848
     */
    private String mapCode;

    /**
     * 联系电话
     */
    private String tel;

    /**
     * 起送数量
     */
    private Integer startSendNum;

    /**
     * 删除标记 0.未删除 1.已删除
     */
    private Integer isDeleted;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 仓库人员的工作方式，0顺序，1按件
     */
    private Integer warehouseUserStatus;

    /**
     * 物流人员的工作方式，0顺序，1按件
     */
    private Integer wuliuUserStatus;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BmWarehouse other = (BmWarehouse) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
            && (this.getMechanismId() == null ? other.getMechanismId() == null : this.getMechanismId().equals(other.getMechanismId()))
            && (this.getWarehouseType() == null ? other.getWarehouseType() == null : this.getWarehouseType().equals(other.getWarehouseType()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getDeliveryfeeAverykm() == null ? other.getDeliveryfeeAverykm() == null : this.getDeliveryfeeAverykm().equals(other.getDeliveryfeeAverykm()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getDeliveryRadius() == null ? other.getDeliveryRadius() == null : this.getDeliveryRadius().equals(other.getDeliveryRadius()))
            && (this.getMapCode() == null ? other.getMapCode() == null : this.getMapCode().equals(other.getMapCode()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getStartSendNum() == null ? other.getStartSendNum() == null : this.getStartSendNum().equals(other.getStartSendNum()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getWarehouseUserStatus() == null ? other.getWarehouseUserStatus() == null : this.getWarehouseUserStatus().equals(other.getWarehouseUserStatus()))
            && (this.getWuliuUserStatus() == null ? other.getWuliuUserStatus() == null : this.getWuliuUserStatus().equals(other.getWuliuUserStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
        result = prime * result + ((getMechanismId() == null) ? 0 : getMechanismId().hashCode());
        result = prime * result + ((getWarehouseType() == null) ? 0 : getWarehouseType().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getDeliveryfeeAverykm() == null) ? 0 : getDeliveryfeeAverykm().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getDeliveryRadius() == null) ? 0 : getDeliveryRadius().hashCode());
        result = prime * result + ((getMapCode() == null) ? 0 : getMapCode().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getStartSendNum() == null) ? 0 : getStartSendNum().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getWarehouseUserStatus() == null) ? 0 : getWarehouseUserStatus().hashCode());
        result = prime * result + ((getWuliuUserStatus() == null) ? 0 : getWuliuUserStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", warehouseCode=").append(warehouseCode);
        sb.append(", mechanismId=").append(mechanismId);
        sb.append(", warehouseType=").append(warehouseType);
        sb.append(", address=").append(address);
        sb.append(", deliveryfeeAverykm=").append(deliveryfeeAverykm);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", deliveryRadius=").append(deliveryRadius);
        sb.append(", mapCode=").append(mapCode);
        sb.append(", tel=").append(tel);
        sb.append(", startSendNum=").append(startSendNum);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", city=").append(city);
        sb.append(", warehouseUserStatus=").append(warehouseUserStatus);
        sb.append(", wuliuUserStatus=").append(wuliuUserStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}